import request from '@/utils/request'

// 面经列表
export const articalListApi = function (params) {
  return request({
    url: '/admin/interview/query',
    method: 'get',
    params
  })
}

// 删除面经
export const deleteArticalApi = function (data) {
  return request({
    url: '/admin/interview/remove',
    method: 'DELETE',
    data
  })
}

// 单个面经的详情
export const detailArticalApi = function (id) {
  return request({
    url: '/admin/interview/show',
    method: 'get',
    params: {
      id
    }
  })
}

// 更新面经的内容
export const updataDetailApi = function (data) {
  return request({
    url: '/admin/interview/update',
    method: 'PUT',
    data
  })
}
// 新增面经
export const createArticalApi = function (data) {
  return request({
    url: '/admin/interview/create',
    method: 'POST',
    data
  })
}
